﻿using Microsoft.EntityFrameworkCore;
using MyabpDDD.Demo.Domain.Education;
using MyabpDDD.Demo.Domain.Models;
using MyCompany.MyProject.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;

namespace MyabpDDD.Demo.EntityFrameworkCore
{
    [ConnectionStringName("mssql")]
    public class MyDbContext : AbpDbContext<MyDbContext>
    {
        
        public DbSet<jiesuan> jiesuan { get; set; }
        public DbSet<Classes> Classes { get; set; }
        public DbSet<Student> Student { get; set; }
        public  DbSet<AccidentrecordsTable> AccidentrecordsTables { get; set; }
        public  DbSet<Agenttable> Agenttables { get; set; }
        public  DbSet<BaoYangTable> BaoYangTables { get; set; }
        public  DbSet<BuMenTable> BuMenTables { get; set; }
        public  DbSet<Cargoownermanagement> Cargoownermanagements { get; set; }
        public  DbSet<CarriagecontractTable> CarriagecontractTables { get; set; }
        public  DbSet<CarrierTable> CarrierTables { get; set; }
        public  DbSet<Chargeablemanagement> Chargeablemanagements { get; set; }
        public  DbSet<CompanyInformation> CompanyInformations { get; set; }
        public  DbSet<Contractmanagementable> Contractmanagementables { get; set; }
        public  DbSet<DegreeTable> DegreeTables { get; set; }
        public  DbSet<Department> Departments { get; set; }
        public  DbSet<Departmenttable> Departmenttables { get; set; }
        public  DbSet<EmployeeName> EmployeeNames { get; set; }
        public  DbSet<EmployeeYable> EmployeeYables { get; set; }
        public  DbSet<Entryapproval> Entryapprovals { get; set; }
        public  DbSet<ExaminationTable> ExaminationTables { get; set; }
        public  DbSet<Exitapproval> Exitapprovals { get; set; }
        public  DbSet<ExpenseManagementPayable> ExpenseManagementPayables { get; set; }
        public  DbSet<ExpensesTable> ExpensesTables { get; set; }
        public  DbSet<FaBiaoType> FaBiaoTypes { get; set; }
        public  DbSet<Fuelmanagementtable> Fuelmanagementtables { get; set; }
        public  DbSet<GeneralTable> GeneralTables { get; set; }
        public  DbSet<HeDui> HeDuis { get; set; }
        public  DbSet<HeadTable> HeadTables { get; set; }
        public  DbSet<Inboundmanagement> Inboundmanagements { get; set; }
        public  DbSet<Inputinvoicemanagement> Inputinvoicemanagements { get; set; }
        public  DbSet<JieSuanTable> JieSuanTables { get; set; }
        public  DbSet<LineTable> LineTables { get; set; }
        public  DbSet<Linemanagementtable> Linemanagementtables { get; set; }
        public  DbSet<LllegalTable> LllegalTables { get; set; }
        public  DbSet<MaintenanceTable> MaintenanceTables { get; set; }
        public  DbSet<Managementtable> Managementtables { get; set; }
        public  DbSet<Managementtanble> Managementtanbles { get; set; }
        public  DbSet<MarriageTable> MarriageTables { get; set; }
        public  DbSet<Materialcollection> Materialcollections { get; set; }
        public  DbSet<MateriallistTale> MateriallistTales { get; set; }
        public  DbSet<OnboardingTable> OnboardingTables { get; set; }
        public  DbSet<Operatormanagement> Operatormanagements { get; set; }
        public  DbSet<Outsourcingunitmanagement> Outsourcingunitmanagements { get; set; }
        public  DbSet<Ownercontract> Ownercontracts { get; set; }
        public  DbSet<OwnercontractTable> OwnercontractTables { get; set; }
        public  DbSet<PaymentMethod> PaymentMethods { get; set; }
        public  DbSet<PaymentTable> PaymentTables { get; set; }
        public  DbSet<Paymentapproval> Paymentapprovals { get; set; }
        public  DbSet<PersonnelBoardTable> PersonnelBoardTables { get; set; }
        public  DbSet<Positionmanagement> Positionmanagements { get; set; }
        public  DbSet<Positiontable> Positiontables { get; set; }
        public  DbSet<PostsTable> PostsTables { get; set; }
        public  DbSet<Procurementofmaterialss> Procurementofmaterialsses { get; set; }
        public  DbSet<PurchaseTable> PurchaseTables { get; set; }
        public  DbSet<Regularizationapproval> Regularizationapprovals { get; set; }
        public  DbSet<Reimbursementapproval> Reimbursementapprovals { get; set; }
        public  DbSet<Reviewprocess> Reviewprocesses { get; set; }
        public  DbSet<Rolemanagement> Rolemanagements { get; set; }
        public  DbSet<SalesinvoiceTable> SalesinvoiceTables { get; set; }
        public  DbSet<StateTable> StateTables { get; set; }
        public  DbSet<ThesurfaceTable> ThesurfaceTables { get; set; }
        public  DbSet<Tireuse> Tireuses { get; set; }
        public  DbSet<Turnovertable> Turnovertables { get; set; }
        public  DbSet<Usermanage> Usermanages { get; set; }
        public  DbSet<VehicleManagement> VehicleManagements { get; set; }
        public MyDbContext(DbContextOptions<MyDbContext> options) : base(options)
        {
        }
        /// <summary>
        /// 创建表时，设置表的信息，字段约束
        /// </summary>
        /// <param name="modelBuilder"></param>
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
    }
}
